 //
//  UINavigationBar+Awesome.h
//  LTNavigationBar
//
//  Created by ltebean on 15-2-15.
//  Copyright (c) 2015 ltebean. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UINavigationBar (Awesome)

/**使用步骤
1.  -(void)viewWillAppear:(BOOL)animated{
     [super viewWillAppear:animated];
     [self.navigationController.navigationBar setShadowImage:[UIImage new]];
     [self.navigationController.navigationBar lt_setBackgroundColor:[UIColor clearColor]];
 }
 
 2.
 -(void)viewWillDisappear:(BOOL)animated{
 [super viewWillDisappear:animated];
 [self.navigationController.navigationBar lt_reset];
 
 }
 
 3. 
 -(void)scrollViewDidScroll:(UIScrollView *)scrollView{
 CGFloat offsetY = scrollView.contentOffset.y;
 CGFloat alpha = 0;
 if (offsetY >= 64) {
 alpha=((offsetY-64)/64 <= 1.0 ? (offsetY-64)/64:1);
 [self.navigationController.navigationBar lt_setBackgroundColor:[[UIColor appNavigationBarColor] colorWithAlphaComponent:alpha]];
 
 }else{
 [self.navigationController.navigationBar lt_setBackgroundColor:[UIColor clearColor]];
 }
 
 }
 
 */


//设置导航栏背景颜色
- (void)lt_setBackgroundColor:(UIColor *)backgroundColor;
- (void)lt_setElementsAlpha:(CGFloat)alpha;
- (void)lt_setTranslationY:(CGFloat)translationY;
//重置导航栏背景颜色
- (void)lt_reset;
@end
